<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>报表管理</title>
    <meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no'
          name='viewport'/>
    <link rel="stylesheet" href="/assets/css/bootstrap.min.css">
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i">
    <link rel="stylesheet" href="/assets/css/ready.css">
    <link rel="stylesheet" href="/assets/css/demo.css">
    <link rel="stylesheet" href="/assets/css/mystyle.css">
</head>
<body>
<div class="wrapper">
    <div th:replace="~{index::topbar}"></div>
    <div th:replace="~{index::sidebar(activeUri='/report/manager')}"></div>
    <div class="main-panel">
        <div class="content">
            <div class="container-fluid">
                <h4 class="page-title">报表查看</h4>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="row">
                                    <form class="col-md-9" action="">
                                        <div class="input-group">
                                            <input type="date" class="form-control">
                                            <label>----</label>
                                            <input type="date" class="form-control">
                                            <div class="input-group-append">
                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <input class="btn btn-block btn-round" value="搜索" type="submit">
                                            </div>
                                        </div>
                                    </form>
                                    <div class="col-md-2">
                                        <div class="float-right">
                                            <button class="btn btn-success" data-toggle="modal" data-target="#UploadReport">上传报表</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <div class="card-title text-center">报表列表</div>
                            </div>
                            <div class="card-body">
                                <div class="pull-right">
                                    <select class="form-control input-fixed" id="user_group">
                                        <option value="0">系统报表</option>
                                        <option value="1">特殊报表</option>
                                    </select>
                                </div>
                                <table class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th scope="col" class="text-md-center">日报时间</th>
                                        <th scope="col" class="text-md-center">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody id="ReportList">
                                    <tr th:each="Time,tStat:${rt_set}">
                                        <td class="text-md-center yc" th:text="${Time}"><p>1</p></td>
                                        <td class="text-md-center">
                                            <a class="badge badge-info" href="" data-toggle="modal" data-target="#ViewReport">查看</a>
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div th:replace="~{index::footer}"></div>
    </div>
</div>
</div>
<!-- Modal -->
<!--UploadReport-->
<div class="modal fade" id="UploadReport" tabindex="-1" role="dialog" aria-labelledby="modalUpdatePro"
     aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h6 class="modal-title"><i class="la la-frown-o"></i> 上传报表</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body text-center">
                <form method="post" id="submitSpecialReport">
                <div class="form-group">
                    请选择地区：
                    <select class="form-control" id="InputDomain1" >
                        <option value="-1">请选择地区</option>
                        <option th:each="Domain,iterStat:${d_lists}" th:value="${Domain.DomainID}" th:text="${Domain.DomainName}">洪山区</option>
                    </select>
                </div>
                <div class="form-group">
                    请选择桥梁：
                    <select class="form-control" id="InputBridge1" name="BridgeID">
                        <option value="-1">请选择桥梁</option>
                    </select>
                </div>
                <div class="form-group">
                    桥梁健康状态：
                    <select class="form-control" id="InputHealth" name="IsNormal">
                        <option value="-1">请选择健康状态</option>
                        <option value="0">健康</option>
                        <option value="1">预警</option>
                    </select>
                </div>
                <div class="form-group">
                    今日数据总量：<input type="number" class="form-control" id="InputThreshold1" placeholder="数据总量" name="DataTotalSum">
                </div>
                <div class="form-group">
                    预警数据量：<input type="number" class="form-control" id="InputThreshold2" placeholder="预警数据总量" name="WarningSum">
                </div>
                <div class="form-group">
                    一级预警数据量：<input type="number" class="form-control" id="InputThreshold3" placeholder="一级预警数据总量" name="FirstWarningSum">
                </div>
                <div class="form-group">
                    二级预警数据量：<input type="number" class="form-control" id="InputThreshold4" placeholder="二级预警数据总量" name="SecondWarningSum">
                </div>
                    <div class="form-group">
                        备注信息：<input type="text" class="form-control" id="InputRemark1" placeholder="备注信息" name="Remarks">
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" id="submitReport">提交</button>
            </div>
        </div>
    </div>
</div>
<!--ViewReport-->
<div class="modal fade bs-example-modal-lg" id="ViewReport" tabindex="-1" role="dialog" aria-labelledby="modalUpdatePro"
     aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header bg-primary">
                <h6 class="modal-title"><i class="la la-frown-o"></i> 查看报表</h6>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body text-center">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th scope="col" class="text-md-center">桥梁</th>
                        <th scope="col" class="text-md-center">今日数据总量</th>
                        <th scope="col" class="text-md-center">今日异常数据总量</th>
                        <th scope="col" class="text-md-center">今日一级预警数据量</th>
                        <th scope="col" class="text-md-center">今日二级预警数据量</th>
                        <th scope="col" class="text-md-center">日报类型</th>
                        <th scope="col" class="text-md-center">异常的传感器</th>
                        <th scope="col" class="text-md-center">异常的单位</th>
                        <th scope="col" class="text-md-center">文件下载</th>
                    </tr>
                    </thead>
                    <tbody id="ShowReport">
                    <tr>
                        <td class="text-md-center yc"><p>1</p></td>
                        <td class="text-md-center">
                            <a class="badge badge-info" href="" data-toggle="modal" data-target="#ViewReport">查看</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>
</body>
<script src="/assets/js/core/jquery.3.2.1.min.js"></script>
<script src="/assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
<script src="/assets/js/core/popper.min.js"></script>
<script src="/assets/js/core/bootstrap.min.js"></script>
<script src="/assets/js/plugin/chartist/chartist.min.js"></script>
<script src="/assets/js/plugin/chartist/plugin/chartist-plugin-tooltip.min.js"></script>
<script src="/assets/js/plugin/bootstrap-notify/bootstrap-notify.min.js"></script>
<script src="/assets/js/plugin/bootstrap-toggle/bootstrap-toggle.min.js"></script>
<script src="/assets/js/plugin/jquery-mapael/jquery.mapael.min.js"></script>
<script src="/assets/js/plugin/jquery-mapael/maps/world_countries.min.js"></script>
<script src="/assets/js/plugin/chart-circle/circles.min.js"></script>
<script src="/assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
<script src="/assets/js/ready.min.js"></script>
<script src="/assets/js/demo.js"></script>
<script src="/assets/js/report.js"></script>
</html>